<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改焊工资质管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-qualifications-edit" th:object="${welderQualifications}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">焊工ID：</label>
                <div class="col-sm-8">
                    <input name="welderId" th:field="*{welderId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">资质获取日期：</label>
                <div class="col-sm-8">
                    <input name="credentialStartTime" th:field="*{credentialStartTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">资质有效期：</label>
                <div class="col-sm-8">
                    <input name="credentialEndTime" th:field="*{credentialEndTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">焊工证获取日期：</label>
                <div class="col-sm-8">
                    <input name="weldingCredentialStartTime" th:field="*{weldingCredentialStartTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">焊工证有效期：</label>
                <div class="col-sm-8">
                    <input name="weldingCredentialEndTime" th:field="*{weldingCredentialEndTime}" class="form-control" type="text">
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">预留1：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="spare1" th:field="*{spare1}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">预留2：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="spare2" th:field="*{spare2}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">预留3：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="spare3" th:field="*{spare3}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">预留4：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="spare4" th:field="*{spare4}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">预留5：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="spare5" th:field="*{spare5}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">预留6：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="spare6" th:field="*{spare6}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">预留7：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="spare7" th:field="*{spare7}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">预留8：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="spare8" th:field="*{spare8}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">是否有效：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="isValid" th:field="*{isValid}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "welder/qualifications";
        $("#form-qualifications-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-qualifications-edit').serialize());
            }
        }
    </script>
</body>
</html>